import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_repo/chapter02/unit03/tapbox_a.dart';
import 'package:flutter_repo/chapter02/unit03/tapbox_b.dart';
import 'package:flutter_repo/chapter02/unit03/tapbox_c.dart';

class Unit03View extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('第二章 第三单元'),),
      body: Column(
        mainAxisAlignment: MainAxisAlignment.start,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Container(
            margin: const EdgeInsets.only(top: 0),
            child: const TapboxA(),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            child: const ParentWidget(),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            child: const ParentCWidget(),
          )
        ],
      ),
    );
  }
}